<template>
<!--<input v-model="id">-->
<!--<input v-model="name">-->
<input v-model="s.value">
</template>

<script setup>
import {useRoute} from "vue-router";
import {onMounted, ref} from "vue";
const route=useRoute()
// const id=ref(0)
// const name=ref("")
// onMounted(()=>{
//     id.value=Number(route.query.id)
//     name.value=route.query.name
// })
const s=ref()
onMounted(()=>{
s.value=JSON.parse(route.query.data)
})


</script>

<style scoped>

</style>